package proxy;/** * Created by Administrator on 2018-11-5. */public class GumballMonitor {    GumballMachineRemote gumballMachine;    public GumballMonitor(GumballMachineRemote gumballMachine) {        this.gumballMachine = gumballMachine;    }    public void report() {        try {            System.out.println("Gumball Machine:" + gumballMachine.getLocation());            System.out.println("Gunball Machine:" + gumballMachine.getCount() + "gumballs");            System.out.println("Current state:" + gumballMachine.getState());        } catch (Exception e) {            e.printStackTrace();        }    }}